#include "stack.h"

Stack::Stack() : tos(stck)
{
}

void Stack::Push(int a)
{
    *tos = a;
    tos++;
}

int Stack::Pop()
{
    tos--;
    return *tos;
}